<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
        "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <link rel="stylesheet" th:href="@{/styles.css}"/>
    <title>登录</title>
</head>
<body>
<form method="get" th:action="@{/personLogin}" th:object="${users}">
    <table border="0" align="center" width="600">
        <tr>
            <td colspan="3" align="center" height="40" id="title">登录!</td>
        </tr>
        <tr>
            <td id="t" align="right"><label>用户名:</label></td>
            <td><input type="text" th:field="*{username}"/></td>
            <td><span class="validationError" th:if="${#fields.hasErrors('username')}" th:erros="*{username}">请输入用户名</span>
            </td>
        </tr>
        <tr>
            <td id="t" align="right"><label>密码:</label></td>
            <td><input type="password" th:field="*{password}"/></td>
            <td><span class="validationError" th:if="${#fields.hasErrors('password')}" th:erros="*{password}">请输入密码</span>
            </td>
        </tr>
        <tr>
            <td colspan="3" align="center" height="40">
                <input type="submit" value="登录">
            </td>
        </tr>
    </table>
</form>
<form method="get" th:action="@{/wel}">
    <table border="0" align="center" width="600">
        <tr>
            <td colspan="3" align="center" height="40">
                <input type="submit" value="退出">
            </td>
        </tr>
    </table>
</form>
</body>
</html>